package com.snow.storeapi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.snow.storeapi.entity.DiagnosisResult;
import com.snow.storeapi.mapper.DiagnosisResultMapper;
import com.snow.storeapi.service.IDiagnosisResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DiagnosisResultServiceImpl extends ServiceImpl<DiagnosisResultMapper, DiagnosisResult> implements IDiagnosisResultService {
    @Autowired
    private DiagnosisResultMapper diagnosisResultMapper;

    @Override
    public void batchUpdateState(List<DiagnosisResult> diagnosisResultList, String recordId) {
        diagnosisResultMapper.batchUpdateState(diagnosisResultList, recordId);
    }

    @Override
    public void batchInsert(List<DiagnosisResult> diagnosisResults, String recordId) {
        diagnosisResultMapper.batchInsert(diagnosisResults, recordId);
    }
}
